﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BookStore.Data
{
   
   public class ProductItem
    {
        private int _id;

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }
        private string _name;

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }
        private int _quantyti;

        public int Quantyti
        {
            get { return _quantyti; }
            set { _quantyti = value; }
        }
        private float _price;

        public float Price
        {
            get { return _price; }
            set { _price = value; }
        }
        private double _total;

        public double Total
        {
            get { return _total; }
            set { _total = _price * _quantyti; }
        }

        public ProductItem(int m_id, string m_name, int m_quanttyti, float m_price, double m_total) 
        {

            this._id = m_id;
            this._name = m_name;
            this._quantyti = m_quanttyti;
            this._price = m_price;
            this._total = m_total;
        }
    }
}
